package com.hefei.service.impl;

import com.hefei.dao.CustInfoMapper;
import com.hefei.entity.CustInfo;
import com.hefei.service.CustInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustInfoServiceImpl implements CustInfoService {

    @Autowired
    private CustInfoMapper custInfoMapper;

    @Override
    public List<CustInfo> findAll() {
        return custInfoMapper.findAll();
    }

    @Override
    public int add(CustInfo custInfo) {
        return custInfoMapper.add(custInfo);
    }

    @Override
    public int delete(String custNo) {
        return  custInfoMapper.delete(custNo);
    }
}
